<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="keywords" content="">
<meta name="description" content="">
<meta name="author" content="">
<title></title>
<!--    <link href="assets/css/icons.css" rel="stylesheet"> -->
<link href="assets/css/bootstrap.min.css" rel="stylesheet">
<link href="assets/css/style.css" rel="stylesheet">
<!--     <link href="assets/css/responsive.css" rel="stylesheet"> -->

</head>

<body>



	<h2 class="header-title text-center" id="title">招聘详情</h2>
	<form id="recrParam">
		<input type="hidden" id="id" name="id">
		<table class="table">
			<tr>
				<td>编号：</td>
				<td><input id="recrId" name="recrId" readonly="readonly"></td>
				<td>姓名：</td>
				<td><input id="recrName" name="recrName" readonly="readonly"></td>
			</tr>
			<tr>
				<td>性别：</td>
				<td><input id="sex" name="sex" readonly="readonly"></td>
				<td>年龄：</td>
				<td><input id="age" name="age" readonly="readonly"></td>
			</tr>
			<tr>
				<td>出生日期：</td>
				<td><input id="birthday" name="birthday"
					readonly="readonly"></td>
				<td>应聘职位：</td>
				<td><input id="recruitJob" name="recruitJob" readonly="readonly"></td>
			</tr>
			<tr>
				<td>所学专业：</td>
				<td><input id="professional" name="professional" readonly="readonly"></td>
				<td>工作经验：</td>
				<td><input id="experience" name="experience" readonly="readonly"></td>
			</tr>
			<tr>
				<td>文化程度：</td>
				<td><input id="education" name="education" readonly="readonly"></td>
				<td>联系电话：</td>
				<td><input id="phone" name="phone" readonly="readonly"></td>
			</tr>
			<tr>
				<td>毕业学校：</td>
				<td><input id="school" name="school" readonly="readonly"></td>
				<td>家庭住址：</td>
				<td><input id="homeAddr" name="homeAddr" readonly="readonly"></td>
			</tr>
			<tr>
				<td>登记时间：</td>
				<td><input id="registTime" name="registTime" readonly="readonly"></td>
				<td>个人简介：</td>
				<td><input id="remark" name="remark" readonly="readonly"></td>
			</tr>
		</table>
	</form>
	<div class="form-group">
		<input type="button"
			id="returnRecr" value="返回" class="btn btn-primary btn-block">
	</div>
	<script>
		$(function() {
			//详情查询
			$.ajax({
				type : "get",
				url : "/HMS/queryRecrDetail",
				dataType : 'json',
				data : {"recrId":recrId},
				contentType : "application/json;charset=UTF-8",
				success : function(val) {
					var data = val.obj[0];
					if(data){
						$("#recrId").val(data.id);
						$("#recrName").val(data.name);
						$("#sex").val(data.sex);
						$("#age").val(data.age);
						$("#birthday").val(new Date(data.birthday).toLocaleString());
						$("#recruitJob").val(data.recruitJob);
						$("#professional").val(data.professional);
						$("#experience").val(data.experience);
						$("#education").val(data.education);
						$("#phone").val(data.phone);
						$("#school").val(data.school);
						$("#homeAddr").val(data.homeAddr);
						$("#registTime").val(data.registTime);
						$("#remark").val(data.remark);
					}
					
				},
				error : function(data) {
					alert('连接失败');
				}
			});
			
			//返回按钮
			$("#returnRecr").click(function(){
				initRecr();
			});
			
		});
	</script>
</body>

</html>
